<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>添加页面</title>
  <style type="text/css">
    table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
    table, th, td {border: 1px solid darkslategray;padding: 10px}
  </style>
</head>
<body>

<form th:action="@{/good/add}" method="post">
  商品名称：<input type="text" name="name" required="required"/><br/>
  商品价格：<input type="text" name="price" required="required"/><br/>
  商品数量：<input type="text" name="num" required="required"/><br/>
  商品状态：<input type="text" name="status" required="required"/><br/>
  <input type="submit" value="添加"/><br/>
</form>

</body>
</html>